﻿using System;
using System.Data;
using Amoo.Code.Common;

namespace Comunidade.Code.Entity
{
    public class Tag
    {
        public int idTag { get; set; }
        public string dsTag { get; set; }
        protected internal static Tag Load(System.Data.DataRow dr)
        {
            return new Tag()
            {
                idTag = Convert.ToInt32(dr["idTag"]),
                dsTag = dr["dsTag"].ToString()
            };
        }
        protected internal static Tag Load(IDataReader dr)
        {
            return new Tag()
            {
                idTag = dr.GetInt32(0),
                dsTag = dr.GetString(1)
            };
        }
    }
}
